﻿using System;
using System.Collections.Generic;

using SharpOSCAR.Snac;

namespace SharpOSCAR.Flap
{
    /// <summary>
    /// Messages using the FLAP connection, usually a SNAC message
    /// </summary>
    public class FLAP__DATA_FRAME : FLAP__HEADER
    {
        /// <summary>
        /// Initializes the FLAP__DATA_FRAME header with the specified SNAC
        /// </summary>
        /// <param name="sequenceNumber">FLAP sequence number</param>
        /// <param name="snacPacket">SNAC packet</param>
        public FLAP__DATA_FRAME(ushort sequenceNumber, SNAC__Header snacPacket)
            : base(sequenceNumber)
        {
            Payload = snacPacket;
        }
        
        /// <summary>
        /// Returns FLAP__FRAME_TYPE.Data
        /// </summary>
        public override FLAP__FRAME_TYPE FrameType
        {
            get { return FLAP__FRAME_TYPE.Data; }
        }
    }
}
